app.service("brandService",function($http){
    //1.查询所有品牌
    this.findAll=()=>{
        return $http.get("../brand/list.do");
    }
    //2.搜索品牌
    this.search=(entity,page,pageSize)=>{
        return $http.post("../brand/search.do?page="+page+"&pageSize="+pageSize,entity);
    }
    //3.保存品牌
    this.save=(url,entity)=>{
        return $http.post(url,entity);
    }
    //4.删除品牌
    this.del=(selectIds)=>{
        return $http.get("../brand/delete.do?ids="+selectIds);
    }
})